package com.zy.oauth.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zy.common.core.annotate.Method;
import com.zy.oauth.dto.pream.SystemsPagePream;
import com.zy.oauth.entity.Systems;
import com.zy.oauth.mapper.SystemsMapper;
import com.zy.oauth.service.SystemsService;
import org.springframework.stereotype.Service;

import java.util.List;



@Service
@Method("all")
public class SystemsServiceImpl extends ServiceImpl<SystemsMapper, Systems> implements SystemsService {


    @Override
    public List<Systems> all() {
        return baseMapper.all();
    }

    @Override
    public Page<?> page(SystemsPagePream pream) {
        return baseMapper.page(pream.getPage(), pream, SystemsPagePream.class);
    }
}
